package com.herui.sdyu_lib.http;


import com.herui.sdyu_lib.http.param.RequestParams;
import com.herui.sdyu_lib.http.param.RetrofitParam;

/**
 * Created by Administrator on 2016/6/1.
 */
public class HttpUtils {
	public static final long DEFAULT_MILLISECONDS = 10000;
	private volatile static HttpUtils instance;

	public static HttpUtils getInstance() {

		if (instance == null) {
			synchronized (HttpUtils.class) {
				if (instance == null) {
					instance = new HttpUtils();
				}
			}
		}
		return instance;
	}

	public static RequestParams get() {
		return new RequestParams().setMethod(HttpMethod.GET);
	}

	public static RequestParams post() {
		return new RequestParams().setMethod(HttpMethod.POST);
	}

	public static RetrofitParam Retrofit() {
		return new RetrofitParam();
	}
}
